package actions.members;

import java.util.ArrayList;
import java.util.List;

import veilingAware.UserAware;
import veilingDomein.Categorie;
import veilingDomein.User;
import veilingDomein.Veiling;
import veilingService.ServiceProvider;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class MyVeilingList extends ActionSupport implements UserAware {
	

	private List<Veiling> veilingen = new ArrayList<Veiling>();
	private List<Categorie> categorien = new ArrayList<Categorie>();
	private User user;

	public String execute() {
		veilingen = ServiceProvider.getVeilingService().getVeilingenByUser(user);
		return ActionSupport.SUCCESS;
	}

	public List<Veiling> getVeilingen(){
		return veilingen;
	}

	@Override
	public void setUser(User user) {
		this.user = user;
	}
	public List<Categorie> getCategorien() {
		return categorien;
	}

}
